import request from "./request"

const {quest} = request

export const ajax = {
    // 丰苗
    getSchoolcode:(data,header)=>quest("/api/user/check_schoolcode","POST",data,header), //学校验证
	
    getLogin:(data,header)=>quest("/api/user/login","POST",data,header),//登录接口
	
    getAllPermission:(data,header)=>quest("/api/user/getAllPermission","POST",data,header), //权限

    getHomepage:(data,header)=>quest("/api/purchasemanage/homepage","POST",data,header), //首页
    

    // 入库管理
    // 采购单申请（采购计划）

    getSupplierlist:(data,header)=>quest("/api/purchasemanage/supplierlist",'POST',data,header), //供应商接口

    getOrdertype:(data,header)=>quest("/api/purchasemanage/ordertype","POST",data,header), //采购单类型

    getUnit:(data,header)=>quest("/api/purchasemanage/getunit","POST",data,header), //获取单位（通过商品获取单位）

    getGoods:(data,header)=>quest("/api/purchasemanage/getGoods","POST",data,header), //获取商品（通过分类获取商品(品名)）

    getBeforeDetail:(data,header)=>quest("/api/purchasemanage/addbeforedetail","POST",data,header), //添加商品的信息列表（添加粮油辅料，添加页面数据）

    addPurchaseadd:(data,header)=>quest("/api/purchasemanage/purchaseadd","POST",data,header), //提交 （添加粮油辅料）

    onTempsave:(data,header)=>quest("/api/purchasemanage/tempsave","POST",data,header),//暂存（暂存粮油辅料）

    onAddbeforedetail:(data,header)=>quest("/api/purchasemanage/addbeforedetail","POST",data,header), //暂存数据（暂存详情数据）

    onIndex:(data,header)=>quest("/api/purchasemanage/index","POST",data,header), //采购单列表（采购单管理）

    onSearchindex:(data,header)=>quest("/api/purchasemanage/searchindex","POST",data,header), //筛选（搜索）

    // onAddbeforedetail:(data,header)=>quest("/api/purchasemanage/addbeforedetail","POST",data,header),//套餐，暂存详情（套餐下拉列表数据）

    onCreatemenu:(data,header)=>quest("/api/purchasemanage/createmenu","POST",data,header), //套餐信息(通过套餐编号，获取套餐信息)

    onCreatematerials:(data,header)=>quest("/api/purchasemanage/creatematerials","POST",data,header), //材料配比（套餐）

    onEditDetail:(data,header)=>quest("/api/purchasemanage/editDetail","POST",data,header), //粮油辅料修改页面详情

    onEditother:(data,header)=>quest("/api/purchasemanage/editother","POST",data,header),//修改

    onCancelorder:(data,header)=>quest("/api/purchasemanage/cancelorder","POST",data,header), //取消计划

    onPurchaseokdetail:(data,header)=>quest("/api/purchasemanage/purchaseokdetail","POST",data,header),//确认入库页面详情（粮油辅料、早餐、自选）

    onWarehousedetail:(data,header)=>quest("/api/purchasemanage/warehousedetail","POST",data,header),//入库单

    onpurchaseok:(data,header)=>quest("/api/purchasemanage/purchaseok","POST",data,header), //确认入库

    onDetailbyorder:(data,header)=>quest("/api/purchasemanage/detailbyorder","POST",data,header), //根据单号查询详情

    onRevokepurchasedetail:(data,header)=>quest("/api/purchasemanage/revokepurchasedetail","POST",data,header), //入库后撤销页面详情

    onRevokepurchaseok:(data,header)=>quest("/api/purchasemanage/revokepurchaseok","POST",data,header),//撤销入库

    // 出库管理
    outBoundtype:(data,header)=>quest("/api/outboundmanage/outboundtype","POST",data,header), //出库单类型

    outTempsaveck:(data,header)=>quest("/api/outboundmanage/tempsaveck","POST",data,header), //暂存（自选）

    outZixuandetail:(data,header)=>quest("/api/outboundmanage/zixuandetail","POST",data,header), //详情（暂存的数据）

    outGetgoods:(data,header)=>quest("/api/outboundmanage/getgoods","POST",data,header), // 获取商品（弹框）

    outGetunit:(data,header)=>quest("/api/outboundmanage/getunit","POST",data,header), //单位库存（弹框）

    outAdd:(data,header)=>quest("/api/outboundmanage/add","POST",data,header), //出库申请（提交）——自选

    outTempsaveck:(data,header)=>quest("/api/outboundmanage/tempsaveck","POST",data,header), // 出库申请（暂存）——自选

    outIndex:(data,header)=>quest("/api/outboundmanage/index","POST",data,header), //出库管理（列表）

    outDeloutbound:(data,header)=>quest("/api/outboundmanage/deloutbound","POST",data,header), //出库管理（删除）

    getZixuaneditdetail:(data,header)=>quest("/api/outboundmanage/zixuaneditdetail","POST",data,header), //出库管理（修改）页面列表数据(确认出库页面详情)

    outEditzixuan:(data,header)=>quest("/api/outboundmanage/editzixuan","POST",data,header), //出库管理（修改）——自选

    goConfirm:(data,header)=>quest("/api/outboundmanage/confirm","POST",data,header), //确认出库

    outApplyorder:(data,header)=>quest("/api/outboundmanage/applyorder","POST",data,header), //出库申请单（列表）

    outDeliveryorder:(data,header)=>quest("/api/outboundmanage/deliveryorder","POST",data,header),//食堂审核（列表）

    outPrincipalconfirm:(data,header)=>quest("/api/outboundmanage/principalconfirm","POST",data,header), //食堂负责人审核

    outCreategoodsmaterials:(data,header)=>quest("/api/outboundmanage/creategoodsmaterials","POST",data,header), //套餐材料配比

    outMenudetail:(data,header)=>quest("/api/outboundmanage/menudetail","POST",data,header), //套餐菜品详情

    outSndetail:(data,header)=>quest("/api/outboundmanage/sndetail","POST",data,header), //单号查询详情

    outCreatematerial:(data,header)=>quest("/api/outboundmanage/creatematerial","POST",data,header), //库存出库（自选）
    
    outSearchindex:(data,header)=>quest("/api/outboundmanage/searchindex","POST",data,header), //搜索（筛选）

    outDeliveryorder:(data,header)=>quest("/api/outboundmanage/deliveryorder","POST",data,header),  //出库单



    // 库存明细账

    inSearchdetail:(data,header)=>quest("/api/Ledger/searchdetail","POST",data,header), //库存明细

    inConditiondetail:(data,header)=>quest("/api/Ledger/conditiondetail","POST",data,header), //明细条件
    
    inGetgoods:(data,header)=>quest("/api/Ledger/getgoods","POST",data,header), //通过分类获取商品

    // 库存总账
    inSearch:(data,header)=>quest("/api/Ledger/search","POST",data,header),  // 库存总账

    inConditions:(data,header)=>quest("/api/ledger/conditions","POST",data,header),  // 总账条件

    inSetgoods:(data,header)=>quest("/api/Ledger/setgoods","POST",data,header), //通过分类获取商品

    // 个人中心
    getUserinfo:(data,header)=>quest("/api/user/getuserinfo","POST",data,header),//个人中心

    // 退出登录
    outLogout:(data,header)=>quest("/api/user/logout","POST",data,header),//退出登录

    // 图片
    getPicinfo:(data,header)=>quest("/api/user/picinfo","POST",data,header),//// 图片





 

    
    

    
    
}